feat(generated): Sync with spec: agents, SSO connections, and more - #719
Merged
Conversation
…_days" renamed to "retention" on "AuditLogs.update_organization_audit_logs_retention"
…"SSO.get_profile_and_token"
…r "body" on "UserManagement.create_authenticate"
…iKeys, AuditLogs, Authorization, ClientApi, Connect, DirectorySync, Events, FeatureFlags, Groups, MultiFactorAuth, OrganizationDomains, OrganizationMembership, Organizations, Pipes, PipesProvider, PlatformTeams, Radar, SSO, UserManagement, Vault, Webhooks, Widgets
Contributor
|
Too many files changed for review (228 files, 100 file limit). Bypass the limit by tagging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This regeneration brings the SDK in sync with several OpenAPI spec releases, so it contains far more than the auto-generated summary suggested. What's actually included:
Added
Agentsservice (AgentBlueprint,AgentInstance,AgentInstanceSession,AgentToken, and related request models/enums). The changelog's "Removed serviceAgents" is a tag reorganization in the spec — no agent endpoints or methods were removed; the existing registration/claim methods are unchanged.POST /connections,PATCH /connections/{id}) and SAML certificate endpoints (IdP signing certs, SP encryption certs, SP signing cert).Team,CreateTeam).email-completiongrant forPOST /user_management/authenticate(EmailCompletionSessionAuthenticateRequest) plus theemail_completion_requirederror response, and waitlist endpoints.retention_periodmonth/year enum option on the update-retention endpoint (see breaking changes below for the parameter shape).agent.instance.*andagent.blueprint.*event types.Removed
DiscordOAuth,GrokOAuth, andXOAuthvalues from the connection type / profile connection type / authentication method enums. These are true removals.Moved or reorganized (listed as "removed" in the changelog, but not actually gone)
Agents" + "Added serviceAgentsBlueprints/AgentsInstances/..." entries reflect the spec re-tagging agent endpoints under sub-resource tags — the endpoints themselves were added or kept, not removed.TokenBody/TokenQueryremoved-then-added entries are churn from the SSO token endpoint's request moving between body and query representations; the endpoint's surface is intact.Breaking changes in this SDK
AuditLogs.update_organization_audit_logs_retention: theretention_period_in_daysparameter was replaced byretention: RetentionPeriod | RetentionPeriodInDays. The days-based value moved into theRetentionPeriodInDaysunion member (deprecated upstream) rather than being removed; the newRetentionPeriodmember takes the month/year enum.SSO.get_profile_and_token:codeis now optional, and a PKCE variant (get_profile_and_token_pkce) was added.UserManagement.create_authenticate: thebodyunion type widened to includeEmailCompletionSessionAuthenticateRequest(additive for callers).ValidateApiKeyis now aTypeAliasofCreateSAMLIdpSigningCertificate— the generator deduplicated structurally identical models. The symbol still exists with the same shape; it was aliased, not removed (the changelog's "Removed symbol" entry is misleading).DiscordOAuth,GrokOAuth, andXOAuthwere removed from the connection type / profile connection type / authentication method enums.Triggered by workos/openapi-spec@6676276
BEGIN_COMMIT_OVERRIDE
feat(agents): Add blueprint, instance, and session endpoints (#719)
feat(sso): Add connection management and SAML certificate endpoints (#719)
feat(organizations): Add IT contacts endpoints (#719)
feat(platform_teams): Add Platform Teams service (#719)
feat(user_management): Add email-completion grant and waitlist endpoints (#719)
feat(audit_logs): Replace retention_period_in_days param with retention union supporting retention periods (#719)
feat(sso): Make code optional on get_profile_and_token and add PKCE variant (#719)
feat(api_keys): Alias ValidateApiKey to deduplicated model (#719)
feat(webhooks): Add agent instance and blueprint webhook event types (#719)
fix(sso): Remove DiscordOAuth, GrokOAuth, and XOAuth from connection type enums (#719)
END_COMMIT_OVERRIDE
Link to Devin session: https://app.devin.ai/sessions/151cadc0bb534027a325939c3c68c0d3
Open in Devin Desktop: https://app.devin.ai/desktop/session/151cadc0bb534027a325939c3c68c0d3?variant=devin
Requested by: @m0tzy